package com.zhongfl.crm.lixiao.mapper;

import com.zhongfl.crm.model.boss.CustomerOrder;
import com.zhongfl.crm.model.boss.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerOrderMapper {

    int deleteById(@Param("id") Integer id, @Param("staffName") String staffName);

    int deleteByCustomerOrderNo(@Param("customerOrderNo") String customerOrderNo, @Param("staffName") String staffName);

    int insertSelective(CustomerOrder record);

    int updateByCustomerOrderNoSelective(CustomerOrder record);

    CustomerOrder selectById(Integer id);

    CustomerOrder selectByCustomerOrderNo(String customerOrderNo);

    List<Order> selectDeliveryOrdersByCustomerOrderNo(String customerOrderNo);

    List<CustomerOrder> selectByPage();

    void cancelCustomerOrder(String customerOrderNo);

    void cancelCustomerOrderByOrderNo(CustomerOrder customerOrder);
}